package cn.itcast.bos.delivery.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.itcast.bos.domain.base.Courier;
import cn.itcast.bos.domain.delivery.Order;
import cn.itcast.bos.domain.delivery.WayBill;

public interface WayBillService {

	void save(Order order, Courier courier);

	void save(WayBill t);

	Page<WayBill> show(Pageable pageable);

	WayBill findByWayBillNum(String wayBillNum);

	Page<WayBill> searchFromElastic(Pageable pageable, WayBill t);

	void transit(List<Integer> wayBills);

	void updateElastic();

	Iterable<WayBill> searchFromElastic(WayBill t);

}
